<?php
header('Content-Type: text/html; charset=utf-8');
date_default_timezone_set('Asia/Shanghai');
error_reporting(0);
define('WEBROOT',dirname(__DIR__));
//require_once WEBROOT.'/config/db.config.php';
require_once WEBROOT.'/config/website.config.php';  //
//require_once WEBROOT . '/lib/class/db/Mysqlj.class.php';    //数据库
require_once WEBROOT.'/config/classloader.config.php';
require_once WEBROOT . '/lib/function/global.func.php';
spl_autoload_register('auto_loader');
session_start();
//setcookie('MYCOOKIE','test',0,'/',"",false,true);
//var_export($_COOKIE);
//var_export($_SESSION);
//exit;
//$oMysql=new \lib\db\Mysqlk($db_host,$db_user,$db_pwd,$db_name);
//$oMysqlp=new \lib\db\MySqlj($db_user,$db_pwd,$db_host,$db_name);
$oMysql=\lib\db\Mysqlk::Instance();
if (!$oMysql->IsConnect()){
    exit('djkfakhsakf');
}
/*$arr=$arr=$oMysql->select("SELECT * FROM student");

foreach ($arr as $value)
{
    echo $value;
}*/
use \lib\http\Session;
Session::Start();
//$_SESSION['ko']='hell';
require_once WEBROOT .'/lib/class/log/logj.class.php';
set_error_handler('handler');       //设置报错的日志
set_exception_handler('ex_handler');        //设置异常错误处理机制
//$oMysql=new MySqlj($db_user,$db_pwd,$db_host,$db_name);
